<template>
    <el-container>
        <el-header>
            <el-menu  class="el-menu-demo" mode="horizontal" :router="true">
<!--                <el-menu-item index="1">首页</el-menu-item>-->
                <el-menu-item index="/user">用户</el-menu-item>
                <el-menu-item index="/brand">品牌</el-menu-item>
                <el-menu-item index="/movieType" >电影类型</el-menu-item>
                <el-menu-item index="/movie" >电影</el-menu-item>
                <el-menu-item index="/comments" >影评</el-menu-item>
                <el-menu-item index="/lobby/list" >影厅</el-menu-item>
                <el-menu-item index="/lobbyType/list" >影厅类型</el-menu-item>
                <el-menu-item index="/actor" >演员/导演</el-menu-item>
                <el-menu-item index="/cinema/list" >影院</el-menu-item>
                <el-menu-item index="/screening" >放映</el-menu-item>
                <el-menu-item index="/food" >食物</el-menu-item>
                <el-menu-item index="/orders" >订单</el-menu-item>
            </el-menu>
        </el-header>
        <el-button @click="clearCache">清空缓存</el-button>
        <el-main>
            <router-view></router-view>
        </el-main>
    </el-container>
</template>

<script>
    export default {
        name: "ManageMenu",
        methods: {
            handleOpen(key, keyPath) {
                console.log(key, keyPath);
            },
            handleClose(key, keyPath) {
                console.log(key, keyPath);
            },
            clearCache() {
                this.axios.get("common/clearCache")
            }
        }
    }
</script>

<style scoped>

</style>